package cn.community.system.service;

import cn.community.system.query.ActivityQuery;
import cn.community.system.query.QueryObject;
import cn.community.system.domain.Activity;
import com.github.pagehelper.PageInfo;

import java.text.ParseException;
import java.util.Date;
import java.util.List;

public interface IActivityService {
    void delete(Long id);
    void save(Activity activity);
    void save2(Activity activity);
    Activity get(Long id);
    List<Activity> listAll();
    void update(Activity activity);
    void update2(Activity activity);

    // 分页
    PageInfo query(QueryObject qo);
    PageInfo queryAssociation(ActivityQuery qo);
    PageInfo queryMember(ActivityQuery qo);

    // 批量修改
    void batchUpdate(Integer isAgree,Long[] ids);

    List<Activity> listOwnAssociation(Long id);

    void passOne(Long id, Integer isAgree);

    List<Activity> getByTime(Date old, Date now);
}
